package org.sample.springbootdatabase.service;

import org.sample.springbootdatabase.domain.entity.User;
import org.sample.springbootdatabase.web.model.UserDTO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

	public List<User> findAllUsers();

	public User findUserById(Long id);

	public User findUserByName(String userName);

	public User saveUser(User user);

	public User createUser(UserDTO userDTO);

	public User updateUserById(User user);

	public User updateUserByName(UserDTO userDTO);

	public void deleteUserById(Long id);

	public void deleteUserByName(String userName);

	public List<User> findByCreatedDate(java.util.Date createdDate);

}
